#!/bin/bash

# https://tinyurl.com/get-golang
# https://tinyurl.com/get-docker01
# https://tinyurl.com/get-rust
# curl -fsSL https://get.docker.com -o get-docker.sh
# https://tinyurl.com/get-sealos
# https://tinyurl.com/get-vm01
# npm i -g bash-language-server
# python jedi

# lsp
# bash: npm i -g bash-language-server
# cpp:  pacman -S ccls
# go:   gopls
# python: pip3 install jedi

# cli
# https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz

pacman -S python-virtualenv python-virtualenvwrapper
export WORKON_HOME=~/.virtualenvs
source /usr/bin/virtualenvwrapper_lazy.sh

curl -LSsO https://sealyun.oss-cn-beijing.aliyuncs.com/latest/sealos && chmod +x sealos && mv sealos /usr/bin 
curl -LSsO https://sealyun.oss-cn-beijing.aliyuncs.com/05a3db657821277f5f3b92d834bbaf98-v1.22.0/kube1.22.0.tar.gz

sealos init --passwd '123456' \
    --master 192.168.0.2  --master 192.168.0.3  --master 192.168.0.4  \
    --node 192.168.0.5 \
    --pkg-url /root/kube1.22.0.tar.gz \
    --version v1.22.0

sealos [join|clean] --master 192.168.0.6 --master 192.168.0.7
sealos [join|clean] --node 192.168.0.6 --node 192.168.0.7
sealos clean --all
sealos etcd save

curl -LSs install-node.now.sh/lts | bash
